package com.xiaohong.oauth.service;

import org.springframework.http.ResponseEntity;

import java.util.Map;

public interface UserLoginService {
    /**
     * 密码模式登录实现
     * @param username
     * @param password
     * @param grant_type
     * @param clientId
     * @param clientSecret
     */
    ResponseEntity<Map> login(Long username, String password, String grant_type, String clientId, String clientSecret) throws Exception;


    /**
     * 刷新令牌
     * @param grant_type
     * @param refresh_token
     * @return
     * @throws Exception
     */
    ResponseEntity<Map> refresh(String grant_type, String refresh_token, String clientId, String clientSecret) throws Exception;



}
